﻿Public Class Profile
    Inherits System.Web.UI.Page

    'This code enables the Edit Profile button to appear if the currently logged user views their own profile.

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        If Request.Params("TravellerName") = User.Identity.Name Then
            btn_edit_profile.Visible = True
        Else
            btn_edit_profile.Visible = False
        End If

    End Sub

End Class